home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Diamond Collection
/
The Diamond Collection (Software Vault)(Digital Impact).ISO
/
cdr28
/
par300.zip
/
EXAMPL13.STX
< prev
next >
Wrap
Text File
|
1995-04-06
|
2KB
|
25 lines
;C
┌─────────────────────────────────────────────────────────────────────────────┐
│ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ EXAMPLE #13 ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ │
└─────────────────────────────────────────────────────────────────────────────┘
┌─────────────────────────────────────────────────────────────────────────────┐
│ │
│ THE INPUT FILE: This is the same input file we used in Example #4 -- a │
│ list of invoices for a computer store. │
│ │
│ WHAT WE WANT: We want to convert the data into an 80-character fixed- │
│ record-length file. This means that we will not have │
│ any carriage returns or line feeds in the output file. │
│ │
│ HOW WE DO IT: We set a flag variable (named "process") to enable the │
│ output once we're past the headings. When the flag is │
│ set, we pad each line to 80 characters (using the PAD │
│ command), and send the data to the output file, using │
│ the OUT command. (We do not use OUTEND, since that │
│ places an end-of-line [carriage return/linefeed] after │
│ the output line.) │
│ │
└─────────────────────────────────────────────────────────────────────────────┘
;P